package guoanmaker.operator.business.service;

import guoanmaker.operator.business.model.OperatorProvince;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author huZhaoyu 
 * @ClassName: OperatorProvinceServiceInterface 
 * @Description: OperatorProvinceServiceInterface
 * @date 2017/6/29
 */
public interface OperatorProvinceServiceInterface {

    /** 
    * @Title: saveProvince
    * @Description: 新增/修改 省份
    * @param：OperatorRoundPhoto   
    * @return OperatorProvince    
    * @throws 
    */
    OperatorProvince saveProvince(OperatorProvince operatorProvince);

    /** 
    * @Title: getAllProvince
    * @Description: 查询所有省份
    * @param：void  
    * @return List<OperatorProvince>   
    * @throws 
    */
    List<OperatorProvince> getAllProvince();

    /** 
    * @Title: getAllProvinceByPage
    * @Description: 查询全部省份并分页 
     * @param：Integer page 页码  
     * @param：Integer size 条数 
    * @return Page<OperatorProvince>   
    * @throws 
    */
    Page<OperatorProvince> getAllProvinceByPage(Integer page, Integer size);

    /** 
    * @Title: deleteProvinceById
    * @Description: 根据Id删除省份 
    * @param： String id   
    * @return void   
    * @throws 
    */
    void deleteProvinceById(String id);

    /** 
    * @Title: getProvinceById 
    * @Description: 根据Id查询省份
    * @param： String id
    * @return OperatorProvince    
    * @throws 
    */
    OperatorProvince getProvinceById(String id);

    /** 
     * @Title: countAllById 
     * @Description: 根据Id查询省份
     * @param： String id
     * @return Integer    
     * @throws 
     */
    Integer countAllById();

}
